import { Application } from 'egg';

export default (app: Application) => {
    const { CHAR, INTEGER } = app.Sequelize;
    const model = app.model.define('GradeResult', {
        grade_result_id: {
            type: CHAR(32),
            primaryKey: true
        },//主键id
        project_id: CHAR(32),//项目id
        employee_id: CHAR(32),//评分职员id
        target_employee_id: CHAR(32),//被评分职员id
        grade_result_score: INTEGER(3),//分数
        created_by: CHAR(32),//创建人
        updated_by: CHAR(32),//更新人
        is_delete: CHAR(1),//标识是否删除（0：否，1：是）
    }, { tableName: 't_grade_result' });
    return model;
};
export class GradeResult {
    grade_result_id: string;
    project_id: string;
    employee_id: string;
    target_employee_id: string;
    grade_result_score: number;
    created_by: string;
    updated_by: string;
    is_delete: string;
}